<template>
  <div>这是新闻的儿子</div>
  <div class="paramsTest">
    <ul>
      <li>编号：{{ params.id }}</li>
      <li>标题：{{ params.title }}</li>
      <li>内容：{{ params.content }}</li>
    </ul>
  </div>
</template>

<script lang="ts" setup name="NewsSon">
import { toRefs } from 'vue';
import { useRoute } from 'vue-router';


let route=useRoute()
// 解构赋值route
let {params}=toRefs(route)





</script>

<style>
img{
  height: 100px;
}
</style>